package com.ivo.controller;

import com.ivo.core.Model;
import com.ivo.model.Employee;
import com.ivo.service.impl.EmployeeServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author JiangWang
 * @Description: 视图页面路径
 * @date 2018/3/14 下午2:28
 */
@Controller
public class ViewController {

    protected Logger logger = LoggerFactory.getLogger(getClass());

    @RequestMapping("/admin")
    public ModelAndView admin(){
        ModelAndView mv = new ModelAndView("index");
        return mv;
    }

    @RequestMapping("/main")
    public ModelAndView main(){
        ModelAndView mv = new ModelAndView("include/main");
        return mv;
    }

    @RequestMapping("/button")
    public ModelAndView button(){
        ModelAndView mv = new ModelAndView("button");
        return mv;
    }
}
